Skip to content

Remove unused @wordpress/scripts and update npm deps - #698

Merged
daggerhart merged 1 commit into
developfrom
chore--npm-security-updates
Nov 17, 2026
Merged

daggerhart merged 1 commit into
developfrom
chore--npm-security-updates

Conversation

@daggerhart

Copy link
Copy Markdown
Collaborator

Brings npm audit from 76 vulnerabilities (4 critical) to 0. All npm packages are development tools; none ship with the plugin.

Changes

  • Remove @wordpress/scripts. Its only use was the check:licenses npm script, which no workflow or Grunt task runs. It pulled in webpack, Puppeteer, Lighthouse and their dependencies.
  • grunt ~1.5.3 → ~1.6.1.
  • npm audit fix for the remaining packages.
  • release.yml: use the Node version from .nvmrc (20) instead of Node 16, matching the Internationalization workflow, and replace the deprecated set-output command.

Supersedes #685, #672, #671, #669, #665, #664, #660, #658, #653, #652, #651, #635 and #613: each package is now removed or at or above the version those pull requests target.

Testing

On Node 20: npm run build, npm run i18n:check, and the release task's clean and copy steps that build dist/.

@wordpress/scripts was only used by an unused license-check
script. Update grunt to 1.6 and apply npm audit fixes, and run
the release workflow on the Node version in .nvmrc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant